Linux中ulimit参数的永久生效。 |
您所在的位置:网站首页 › 怎么修改open files › Linux中ulimit参数的永久生效。 |
第一种,配置文件修改。
修改所有 linux 用户的环境变量文件: vi /etc/profile ulimit -u 10000 ulimit -n 4096 或进入对应用户的配置文件: vi ~/.bash_profile 添加同上 第二种,ulimits.conf配置文件修改。vi /etc/security/limits.conf 进入后上面有详细的英文注解。 1、 /etc/security/limits.conf 中增加这些e3base soft core 65536 e3base hard core 65536 e3base soft nofile 1048576 e3base hard nofile 1048576 e3base soft stack 262144 e3base hard stack 262144 e3base soft nproc 65536 e3base hard nproc 65536 root soft core 65536 root hard core 65536 root soft nofile 1048576 root hard nofile 1048576 root soft stack 262144 root hard stack 262144 root soft nproc 65536 2、如果limit.conf里面已经 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |